package com.village.friend.service;

import com.village.friend.dto.request.PolicyAddDto;
import com.village.friend.dto.request.PolicyInitDto;
import com.village.friend.dto.request.PolicyListDto;
import com.village.friend.dto.request.PolicyUpdateDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.village.friend.entity.UserPolicy;

import java.util.List;

/**
 * <p>
 * 会员缴费政策表 服务类
 * </p>
 *
 * @author yl
 * @since 2021-08-23
 */
public interface UserPolicyService extends IService<UserPolicy> {


    List<UserPolicy> queryParam(PolicyListDto param);

    UserPolicy findOneByTypeAndMonths(String type, Integer grade);

    UserPolicy findOneByTypeAndPrice(String type, Integer amout);
}
